According to Daisy Ridley, J.J. Abrams wrote drafts for Star Wars 8 and Star Wars 9 before Rian Johnson took over and wrote what would become Star Wars: The Last Jedi.
In any case, according to her, after writing The Force Awakens, J.J. Abrams wrote drafts for Star Wars 8 and Star Wars 9.
Now, J.J. Abrams and Chris Terrio have to figure out how to satisfy fans with their new script for Star Wars 9 after the events of The Last Jedi.
It would make sense for J.J. Abrams to have possibly outlined where he thought Star Wars 8 and Star Wars 9 could go.