Options
All
  • Public
  • Public/Protected
  • All
Menu

Module runners/hacknet

Index

Executable

Executable

  • main(ns: NS): Promise<void>
  • Automatically maintain Hacknet nodes.

    Each cycle will:

    • Upgrade any nodes to "baseline" (first node).
    • Compare cost/benefit of each upgrade.
    • Purchase best available upgrade across all nodes or purchase a new node.
    export
    example
    run /runner/hacknet.js
    

    Parameters

    • ns: NS

      The Netscript object.

    Returns Promise<void>

Generated using TypeDoc