The Dark Knight Returns

So in the Dark Knight Returns Gordon mentions something happening to Jason but TDKR was published before anything happened to Jason in the comics? Did they kill Jason because it happened in Frank Miller’s Batman’s future or was it unrelated?

Maybe