<!-- 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. <b>Signature:</b> ```typescript exit(): never; ``` <b>Returns:</b> never ## Remarks RAM cost: 0 GB