Bitburner-Scripts/servers/home/killall.ts

9 lines
180 B
TypeScript

import { recursiveScan } from "./utils"
export async function main(ns: NS) {
let servers: string[] = recursiveScan(ns)
for (const server of servers) {
ns.killall(server)
}
}