<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [bitburner](./bitburner.md) > [NetscriptPort](./bitburner.netscriptport.md) > [nextWrite](./bitburner.netscriptport.nextwrite.md) ## NetscriptPort.nextWrite() method Sleeps until the port is written to. **Signature:** ```typescript nextWrite(): Promise<void>; ``` **Returns:** Promise<void> ## Remarks RAM cost: 0 GB