[Home](./index.md) > [bitburner](./bitburner.md) > [UserInterface](./bitburner.userinterface.md) > [setTailTitle](./bitburner.userinterface.settailtitle.md) ## UserInterface.setTailTitle() method Set the title of the tail window of a script. **Signature:** ```typescript setTailTitle(title: string | ReactNode, pid?: number): void; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| title | string \| [ReactNode](./bitburner.reactnode.md) | The new title for the tail window. |
| pid | number | _(Optional)_ Optional. PID of the script having its tail closed. If omitted, the current script is used. |