This commit is contained in:
2024-10-13 23:08:54 +02:00
parent 0e100cc1da
commit 1e6dbeac8a
7 changed files with 150 additions and 81 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)
});
}