NETSCRIPT: Moved formatting functions to their own interface (#1635)

This commit is contained in:
G4mingJon4s
2025-05-14 18:13:35 +02:00
committed by GitHub
parent 69cc3b69b5
commit 2b8c008be1
19 changed files with 219 additions and 138 deletions
@@ -38,6 +38,6 @@ If the program does not exist, an error is thrown.
```js
const programName = "BruteSSH.exe";
const cost = ns.singularity.getDarkwebProgramCost(programName);
if (cost > 0) ns.tprint(`${programName} costs $${ns.formatNumber(cost)}`);
if (cost > 0) ns.tprint(`${programName} costs $${ns.format.number(cost)}`);
```