/** @param {NS} ns */ export async function main(ns) { let [sDivName, sCity, oCurrentGoods] = ns.args; oCurrentGoods = JSON.parse(oCurrentGoods); ns.corporation.sellMaterial(sDivName,sCity,oCurrentGoods.sMaterialName,oCurrentGoods.yAmount,oCurrentGoods.yPrice); ns.writePort(ns.pid, true); }