Created
February 1, 2022 20:09
-
-
Save michaelkebe/e56d5eb9e25d92180f18905d2986ac54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @param {NS} ns **/ | |
export async function main(ns) { | |
const delay = ns.args[1] | |
if (delay) { | |
await ns.sleep(delay) | |
} | |
await ns.hack(ns.args[0]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment