Answer:
D. Science-fiction writers set their stories in the future.
Step-by-step explanation:
Sentence D presents the proper usage of the preposition "in", which refers to a particular moment in time in which the stories take place.
In the case of science-fiction literature, writers tend to use the future as the main setting of their stories.