How to reset 'new' and 'updated' flags without visiting a node page?
You can use node_tag_new() for that


  Updates the 'last viewed' timestamp of the specified node for current user.


e.g.

node_tag_new($node);