Fix Typing on kill in NetscriptFunctions.ts

forgot to mark hostname as optional
This commit is contained in:
TheMas3212
2021-12-31 11:12:43 +11:00
parent 31ed5d8f64
commit f3aed87fa4

View File

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