declare function times(n: number, fn: (n: number) => T, ctx?: any): T[]; export = times;