diff --git a/servers/home/autoexec.ts b/servers/home/autoexec.ts index bddc811..4132e04 100644 --- a/servers/home/autoexec.ts +++ b/servers/home/autoexec.ts @@ -1,5 +1,3 @@ -import {NS} from "NetscriptDefinitions"; - export async function main(ns: NS) { ns.run("watcher.js") ns.run("hacknet.js") diff --git a/servers/home/hack.ts b/servers/home/hack.ts index bd1b4d7..6d5e180 100644 --- a/servers/home/hack.ts +++ b/servers/home/hack.ts @@ -1,4 +1,3 @@ -import {NS} from "NetscriptDefinitions"; export async function main(ns: NS) { const server: string = ns.args[0]; while (true) { diff --git a/servers/home/hackallservers.ts b/servers/home/hackallservers.ts index a14c660..bea3e51 100644 --- a/servers/home/hackallservers.ts +++ b/servers/home/hackallservers.ts @@ -1,7 +1,5 @@ -import {NS} from "NetscriptDefinitions"; import {recursiveScan} from "./utils"; import {executeScriptOnServerFromAnother} from "./utils"; - export async function main(ns: NS) { let servers: string[] = recursiveScan(ns); diff --git a/servers/home/hacknet.ts b/servers/home/hacknet.ts index 7bd0cc7..b957165 100644 --- a/servers/home/hacknet.ts +++ b/servers/home/hacknet.ts @@ -1,5 +1,3 @@ -import {NS} from "NetscriptDefinitions"; - /* * TODO: * The current solution is not optimal, as it's preferable to buy new nodes, even if upgrading is cheaper. diff --git a/servers/home/killall.ts b/servers/home/killall.ts index a2bfae8..f6dcb47 100644 --- a/servers/home/killall.ts +++ b/servers/home/killall.ts @@ -1,6 +1,4 @@ -import {NS} from "NetscriptDefinitions"; import {recursiveScan} from "./utils"; - export async function main(ns: NS) { let servers: string[] = recursiveScan(ns) for (const server of servers) { diff --git a/servers/home/utils.ts b/servers/home/utils.ts index 8d90a88..2639e95 100644 --- a/servers/home/utils.ts +++ b/servers/home/utils.ts @@ -1,12 +1,4 @@ // noinspection JSUnusedGlobalSymbols - -/** - * @file Utility functions for Bitburner - * @note Some functions are currently untested - */ - -import {NS} from "NetscriptDefinitions"; - /** * Recursively scans all servers connected to the current server, excluding home * @param ns global NS object diff --git a/servers/home/watcher.ts b/servers/home/watcher.ts index a6bff33..0492994 100644 --- a/servers/home/watcher.ts +++ b/servers/home/watcher.ts @@ -1,4 +1,3 @@ -import {NS} from "NetscriptDefinitions"; export async function main(ns: NS) { let hackingLevel = ns.getHackingLevel(); while (hackingLevel < 9999) {