>>23088545
can I see your script? I just took a look at bitburner (looks fun!)
if it's helpful to you, args works like this:
//hack.js
export async function main(ns){
const host = ns.args[0];
ns.tprintf("hacking %s...", host);
while(true){
const earned = await ns.hack(host);
ns.tprint("hacked %s from %s", earned, host);
}
}
>run hack.js "n00dles"
a cool thing to do might be to have your script load the hostnames you're hacking from an external file at the start of each iteration of your main loop (maybe that's what you're doing already?)
then you can just edit the hostnames.txt file with newly-hacked servers, whilst keeping your hack script running the whole time