bitburner-src/markdown/bitburner.ns.getresetinfo.md
Snarling 6024c81113
NETSCRIPT: add ns.getResetInfo(#490)
* Move lastAugReset and lastNodeReset back to main API under getResetInfo, also included currentNode.
* The associated properties are deprecated on getPlayer()
2023-04-25 05:22:36 -04:00

689 B

Home > bitburner > NS > getResetInfo

NS.getResetInfo() method

Get information about resets.

Signature:

getResetInfo(): ResetInfo;

Returns:

ResetInfo

Remarks

RAM cost: 1 GB

Example

const resetInfo = ns.getResetInfo();
const lastAugReset = resetInfo.lastAugReset;
ns.tprint(`The last augmentation reset was: ${new Date(lastAugReset)}`);
ns.tprint(`It has been ${Date.now() - lastAugReset}ms since the last augmentation reset.`);