This is perfectly possible to provide as a non-async one-liner like this (TS):
function base64ToBlob(b64Data: string, contentType?: string) {
return new Blob([Uint8Array.from(atob(b64Data), char => char.charCodeAt(0))], { type: contentType ?? "application/octet-stream" });
}