Per recommendation in atob function documentation, use Buffer.
const newUint8Array = Uint8Array.from(Buffer.from(text,'base64'));