Bitburner-Scripts/servers/home/killall.ts

9 lines
180 B
TypeScript
Raw Normal View History

2023-11-03 18:42:37 -03:00
import { recursiveScan } from './utils'
export async function main(ns: NS) {
let servers: string[] = recursiveScan(ns)
for (const server of servers) {
ns.killall(server)
}
}