[Home](./index.md) > [bitburner](./bitburner.md) > [UserInterface](./bitburner.userinterface.md) > [closeTail](./bitburner.userinterface.closetail.md) ## UserInterface.closeTail() method Close the tail window of a script. **Signature:** ```typescript closeTail(pid?: number): void; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| pid | number | _(Optional)_ Optional. PID of the script having its tail closed. If omitted, the current script is used. |