I've dealt with smoke issues over the years.
First line of defense is to not buy them in the first place. I ask folks selling to me about smoke damage.
But sometimes, you get them anyway.
I've seen folks try using dryer sheets, which sorta works, but then the books smell like dryer sheets which is scant improvement
IMO.
I discovered by accident that the hot, low-humidity summer air of an Arizona garage will dissipate the smoke smell after a few months. Don't even have to open the pages. Not clear why it works, but it does. What's left is either a vague faint musty smell or nothing.
Like I said, I avoid smoky books like the plague, but for the few I get, it means I can't sell them for months.