// https://pegasus.pimpninjas.org/code/javascript/bitburner/console.js
// for BitBurner - https://danielyxie.github.io/bitburner/
// by "The Almighty Pegasus Epsilon" <pegasus@pimpninjas.org>
// version 1.0 (C)opyright April 13 2022
// Distribute Unmodifed - https://pegasus.pimpninjas.org/license
/** @param {NS} ns **/
import { terminal } from "second-terminal.js";
export async function main (ns) {
await terminal(ns, ns.getScriptName(), e => {
ns.print("> ", e.target.value);
try { ns.print("< ", eval(e.target.value)); }
catch (e) {
e.captureStackTrace;
ns.print("Ⓧ ", e.stack); }
});
// ns.getAugmentationCost // 80 GB
// ns.getAugmentationsFromFaction // 80GB
// ns.getCharacterInformation // 8 GB
ns.getStats // 8 GB
ns.getServer // 2 GB
ns.getPlayer // 0.5 GB
ns.getServerRam // 0.1 GB
ns.getServerBaseSecurityLevel // 0.1 GB
ns.getScriptExpGain // 0.1 GB
ns.getHackTime // 0.05 GB
ns.getHostname // 0.05 GB
ns.getHackingLevel // 0.05 GB
}