The impact of time-dependent stellar activity on the atmospheric chemistry and observability of exoplanets