DS9 turned into an ongoing story that was just broken up into hour long chunks though. So it’s ending isn’t really comparable to TNG that stayed episodic all the way through.
Only at the very end, and the beginning of S6. Other than those, it was still an episodic show with each episode telling its own story against the backdrop of the war.