The parent comment's advice is good. There are problems with your reply and the replies to it. People are confusing "eye strain" with the long term permanent eye issues of myopia and macular degeneration. "Eye strain" has no long term effects, and there's no such thing as overuse of eye muscles causing soreness. And people confuse all sorts of things, like headaches from neck muscle overuse, with eye strain.
Eye dryness is the only real "eye strain" related issue that can have permanent effects. Ironically the advice of "rest your eyes to relax the muscles" might be helpful because it helps your eyes re-wet, as your blink rate lowers when engage in close up activity. The advice itself is based in the nonsense that the muscles can wear out.
> I remember having eye strain a few times like a decade ago, but I guess that was from over eating sugar or something
No, it wasn't, and I'm always surprised when people look for conclusions like this. Most of the replies in this HN post are anecdotal "here's what I do," and very few have an understanding of the actual issue and question.