Inspired by https://github.com/moriakaice/bitburner
export async function main(ns) {
if (ns.getHostname() !== "home") {
throw new Exception("Run the script from home");
}
await ns.wget(
`https://raw.githubusercontent.com/svenfinke/bitburner/main/src/init.js?ts=${new Date().getTime()}`,
"initHacking.js"
);
ns.spawn("initHacking.js", 1);
}