<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [self](./bitburner.ns.self.md) ## NS.self() method Returns the currently running script. **Signature:** ```typescript self(): RunningScript; ``` **Returns:** [RunningScript](./bitburner.runningscript.md) ## Remarks RAM cost: 0 GB