FIGS: spectral fitting constraints on the star formation history of massive galaxies since the cosmic noon