/** @param {NS} ns */ export async function main(ns) { if (!ns.corporation.hasUnlock("Warehouse API")) { ns.corporation.purchaseUnlock("Warehouse API"); ns.writePort(ns.pid, true) } ns.writePort(ns.pid, true) }