async function blobify(blobOrPath, type) {
  if (typeof blobOrPath === 'string') {
    const buf = await fs.promises.readFile(blobOrPath);
    return new Blob([buf], { type });
  }
  return blobOrPath;
}
@param {Blob|string} blobOrPath
@param {string} type