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
No known key found for this signature in database
GPG Key ID: 62A173A4FDA683CA

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