async function calculatePrice(productIds) {
  const timer = new Timer();
  let totalUsd = 0;
  const products = await db.getAll(
      ...productIds.map((id) => db.doc(`products/${id}`)),
  );
  for (const product of products) {
    totalUsd += product.data()?.usd || 0;
  }
  logger.info("calculatePrice", {calcPriceMs: timer.measureMs()});
  return totalUsd;
}
Get prices for all products in `productIds` array
@param {string[]} productIds
@return {number}