2723. Add Two Promises ¶ TypeScript 1 2 3 4 5 6type P = Promise<number>; async function addTwoPromises(promise1: P, promise2: P): P { const results = await Promise.all([promise1, promise2]); return results[0] + results[1]; }