[Home](./index.md) > [bitburner](./bitburner.md) > [UserInterface](./bitburner.userinterface.md) > [setTailMinimized](./bitburner.userinterface.settailminimized.md) ## UserInterface.setTailMinimized() method Minimize or expand the tail window of a script. **Signature:** ```typescript setTailMinimized(minimized: boolean, pid?: number): void; ``` ## Parameters
Parameter Type Description
minimized boolean
pid number _(Optional)_ Optional. The PID of the script. If omitted, the current script is used.
**Returns:** void ## Remarks RAM cost: 0 GB Equivalent to pressing the "Minimize"/"Expand" button on the tail window. If called without arguments, this function minimizes/expands the tail window of the current script. If a PID is provided, it minimizes/expands the tail window of the specified script instead.