<!-- Do not edit this file. It is automatically generated by API Documenter. --> [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(): never; ``` **Returns:** never ## Remarks RAM cost: 0 GB