2023-04-25 11:22:36 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getResetInfo](./bitburner.ns.getresetinfo.md)
|
|
|
|
|
|
|
|
## NS.getResetInfo() method
|
|
|
|
|
|
|
|
Get information about resets.
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
getResetInfo(): ResetInfo;
|
|
|
|
```
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
[ResetInfo](./bitburner.resetinfo.md)
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 1 GB
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
const resetInfo = ns.getResetInfo();
|
|
|
|
const lastAugReset = resetInfo.lastAugReset;
|
|
|
|
ns.tprint(`The last augmentation reset was: ${new Date(lastAugReset)}`);
|
2024-05-27 23:42:31 +02:00
|
|
|
ns.tprint(`It has been ${Date.now() - lastAugReset} ms since the last augmentation reset.`);
|
2023-04-25 11:22:36 +02:00
|
|
|
```
|
|
|
|
|