export default function (action: (_: T) => Promise, promises: T[]): Promise