How to navigate from one node to another programmatically using figma plugin?

I am a Figma plugin developer . I want to navigate from one node to another with the reactions array programmatically without using any user interaction like “click” or “drag” . How can I do this ?