Hello I am trying to find out if there is an event listener when user closes the uxp plugin and photoshop so that I can run some code when that happens.
For plugin panels check Entry Points docs (specfically entrypoints.panels[].show and entrypoints.panels[].hide). But know, that these callbacks were documented for a while now, but they never worked. Maybe they do now - you’ll need to check