Not important. I can really get into stories in games, but it's the story that has to capture me while I play it, I don't start playing just to get invested in a story. A game like Disco Elysium has no appeal to me, even though I'm sure it's fantastic for its target audience.
But I suppose it also depends on what else I'm doing with my free time. I don't read many books anymore, but last time I was reading a book, my patience for story in games was at an all time low. And it has nothing to do with quality, it's not about whether or not that story can match the book's narrative, it's just that I just spent a few hours laying down essentially exclusively reading dialogue, and then I decide to get up, turn on my TV, my console, pick up my controller and play a game, only to instantly get a ton of dialogue? Get outta here, let me play.