From f3aed87fa477e8aedc594c569ba5479fe85a350b Mon Sep 17 00:00:00 2001 From: TheMas3212 Date: Fri, 31 Dec 2021 11:12:43 +1100 Subject: [PATCH] Fix Typing on kill in NetscriptFunctions.ts forgot to mark hostname as optional --- src/NetscriptFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index 5ffbce6c4..b8d35571b 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -1009,7 +1009,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS { workerScript.log("spawn", () => "Exiting..."); } }, - kill: function (filename: any, hostname: any, ...scriptArgs: any): any { + kill: function (filename: any, hostname?: any, ...scriptArgs: any): any { updateDynamicRam("kill", getRamCost("kill")); let res;