diff --git a/src/NetscriptFunctions/Singularity.ts b/src/NetscriptFunctions/Singularity.ts index 3c185e602..99b960856 100644 --- a/src/NetscriptFunctions/Singularity.ts +++ b/src/NetscriptFunctions/Singularity.ts @@ -819,7 +819,7 @@ export function NetscriptSingularity( return player.getUpgradeHomeRamCost(); }, - workForCompany: function (companyName: any, focus: boolean = true): any { + workForCompany: function (companyName: any, focus = true): any { helper.updateDynamicRam("workForCompany", getRamCost("workForCompany")); helper.checkSingularityAccess("workForCompany", 2); @@ -991,7 +991,7 @@ export function NetscriptSingularity( workerScript.log("joinFaction", () => `Joined the '${name}' faction.`); return true; }, - workForFaction: function (name: any, type: any, focus: boolean = true): any { + workForFaction: function (name: any, type: any, focus = true): any { helper.updateDynamicRam("workForFaction", getRamCost("workForFaction")); helper.checkSingularityAccess("workForFaction", 2); getFaction("workForFaction", name); diff --git a/src/Terminal/commands/common/editor.ts b/src/Terminal/commands/common/editor.ts index a76237e85..bf5c23960 100644 --- a/src/Terminal/commands/common/editor.ts +++ b/src/Terminal/commands/common/editor.ts @@ -19,12 +19,12 @@ function isNs2(filename: string): boolean { const newNs2Template = `/** @param {NS} ns **/ export async function main(ns) { - + }`; export function commonEditor( command: string, - { terminal, router, player, server, args }: EditorParameters, + { terminal, router, player, args }: EditorParameters, scriptEditorRouteOptions?: ScriptEditorRouteOptions, ): void { if (args.length < 1) {