[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [exit](./bitburner.ns.exit.md)
## NS.exit() method
Terminates the current script immediately.
Signature:
```typescript
exit(): void;
```
Returns:
void
## Remarks
RAM cost: 0 GB