import { Big } from "big.js" ; param { Big } delay returns { Promise . < void > } export async function Wait ( delay ? ) { if ( delay == null ) { return Promise . reject ( new Error ( "Input parameter 'delay' is required." ) ) ; } return new Promise ( resolve => { setTimeout ( ( ) => resolve ( ) , Number ( delay ) ) ; } ) ; }