In all actuality, a worse case scenario will leave you wishing your electronic devices, and cars, and livelihoods were the only things getting destroyed by the blast of unfathomable energy raining down from the sky.
The star our planet orbits, the sun 🌞, could with little to no warning at all, belch an unprecedented CME at earth that would simply strip away the atmosphere, along with all the layers of inherent protection it has historically provided, and completely change the biosphere as we know it, in dramatic fashion... Leaving whatever life that survives this event an unrecognizable mutation.
We, with all our science and religion, will be helpless and powerless to do anything other than die quickly.
We might have a moment of contemplation of our impending demise, when we notice all the readings from our solar observatories go completely off the charts, and you begin to taste the sunlight ionizing the air near the planets surface... Your sunglasses no longer dark enough...
The sun can wipe this planet clean of all carbon based life forms with only a sneeze. Never take anything for granted.