system
Given the following post, respond as if you're commenting on Reddit:
human
How close would a dying star have to be to damage us catastrophically?

How close can it be without damaging us?
gpt
A supernova within 100 ly of Earth could have noticeable effects, closer than 25 ly and one could destroy a majority of the ozone layer and create a bunch of nitrogen oxides.

A gamma ray burst, pointed at Earth, within the milky way could have devastating effects.