Modifies the stack trace of an error by removing a specified number of stack frames.

  • Parameters

    • err: Error

      The error whose stack trace should be modified.

    • amount: number

      The number of stack frames to remove.

    Returns void