[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;
```
Returns:
Promise<void>
## Remarks
RAM cost: 0 GB