Options
All
  • Public
  • Public/Protected
  • All
Menu

Module _workers/grow

Index

Executable

Importable

Executable

  • main(ns: NS): Promise<void>
  • Grow host(s) from Terminal.

    export
    example

    Grow single passed in host.

    run /helpers/grow.js [host0]
    
    example

    Grow multiple passed in hosts.

    run /helpers/grow.js [host0] ... [hostn]
    

    Parameters

    • ns: NS

      The Netscript object.

    Returns Promise<void>

Importable

  • grow(ns: NS, hostname: string): Promise<number>
  • Grow host on hostname.

    export
    async

    Parameters

    • ns: NS

      The Netscript object.

    • hostname: string

      The host to grow.

    Returns Promise<number>

    • The amount by which the server's money grew.

Generated using TypeDoc