Bitburner-Scripts/servers/home/killall.ts
2023-11-03 18:42:37 -03:00

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)
}
}