Don't need to import NS anymore
This commit is contained in:
parent
4be46174b3
commit
b40c4d07e8
@ -1,5 +1,3 @@
|
|||||||
import {NS} from "NetscriptDefinitions";
|
|
||||||
|
|
||||||
export async function main(ns: NS) {
|
export async function main(ns: NS) {
|
||||||
ns.run("watcher.js")
|
ns.run("watcher.js")
|
||||||
ns.run("hacknet.js")
|
ns.run("hacknet.js")
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import {NS} from "NetscriptDefinitions";
|
|
||||||
export async function main(ns: NS) {
|
export async function main(ns: NS) {
|
||||||
const server: string = <string>ns.args[0];
|
const server: string = <string>ns.args[0];
|
||||||
while (true) {
|
while (true) {
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import {NS} from "NetscriptDefinitions";
|
|
||||||
import {recursiveScan} from "./utils";
|
import {recursiveScan} from "./utils";
|
||||||
import {executeScriptOnServerFromAnother} from "./utils";
|
import {executeScriptOnServerFromAnother} from "./utils";
|
||||||
|
|
||||||
export async function main(ns: NS) {
|
export async function main(ns: NS) {
|
||||||
let servers: string[] = recursiveScan(ns);
|
let servers: string[] = recursiveScan(ns);
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import {NS} from "NetscriptDefinitions";
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO:
|
* TODO:
|
||||||
* The current solution is not optimal, as it's preferable to buy new nodes, even if upgrading is cheaper.
|
* The current solution is not optimal, as it's preferable to buy new nodes, even if upgrading is cheaper.
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import {NS} from "NetscriptDefinitions";
|
|
||||||
import {recursiveScan} from "./utils";
|
import {recursiveScan} from "./utils";
|
||||||
|
|
||||||
export async function main(ns: NS) {
|
export async function main(ns: NS) {
|
||||||
let servers: string[] = recursiveScan(ns)
|
let servers: string[] = recursiveScan(ns)
|
||||||
for (const server of servers) {
|
for (const server of servers) {
|
||||||
|
@ -1,12 +1,4 @@
|
|||||||
// noinspection JSUnusedGlobalSymbols
|
// 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
|
* Recursively scans all servers connected to the current server, excluding home
|
||||||
* @param ns global NS object
|
* @param ns global NS object
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import {NS} from "NetscriptDefinitions";
|
|
||||||
export async function main(ns: NS) {
|
export async function main(ns: NS) {
|
||||||
let hackingLevel = ns.getHackingLevel();
|
let hackingLevel = ns.getHackingLevel();
|
||||||
while (hackingLevel < 9999) {
|
while (hackingLevel < 9999) {
|
||||||
|
Loading…
Reference in New Issue
Block a user