Don't need to import NS anymore

This commit is contained in:
Isaac Shoebottom 2023-11-03 17:47:50 -03:00
parent 4be46174b3
commit b40c4d07e8
7 changed files with 0 additions and 18 deletions

View File

@ -1,5 +1,3 @@
import {NS} from "NetscriptDefinitions";
export async function main(ns: NS) {
ns.run("watcher.js")
ns.run("hacknet.js")

View File

@ -1,4 +1,3 @@
import {NS} from "NetscriptDefinitions";
export async function main(ns: NS) {
const server: string = <string>ns.args[0];
while (true) {

View File

@ -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);

View File

@ -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.

View File

@ -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) {

View File

@ -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

View File

@ -1,4 +1,3 @@
import {NS} from "NetscriptDefinitions";
export async function main(ns: NS) {
let hackingLevel = ns.getHackingLevel();
while (hackingLevel < 9999) {