Bitburner-Scripts/servers/home/killall.ts

9 lines
227 B
TypeScript
Raw Normal View History

2023-11-03 15:22:12 -03:00
import {NS} from "NetscriptDefinitions";
import {recursiveScan} from "./utils";
export async function main(ns: NS) {
let servers: string[] = recursiveScan(ns)
for (const server of servers) {
ns.killall(server)
}
}