fixed Updatebesttarget, EveryServerRun and

purchaseServers in Library.
This commit is contained in:
Philipp
2024-10-13 13:16:09 +02:00
parent 66cfe2c929
commit 66e147d0d7
5 changed files with 13 additions and 13 deletions

View File

@@ -1,8 +1,7 @@
/** @param {NS} ns */
export async function main(ns) {
let serverList = JSON.parse(ns.read("serverList.txt"));
for (const [name, entry] of Object.entries(serverList)) {
ns.killall(name, true)
}
serverList.forEach(entry => {
ns.killall(entry.serverName, true)
});
}