Hide uxp history?

hide uxp history ? I have completed my entire photoshop project. But I don’t want users to see the history. Can you help me with the code I need to add for this?

Resurfacing this topic as I’ve had a request for it. Even with ability to combine multiple history states into one using executeAsModal(), there are times that a plugin can generate a lot of useless history states if the mouseover event is used to trigger changes to the image, like an opacity or blend mode change. It would be best not to clutter the History panel with all these history states, but some type of code to suppress history state recording entirely would be needed.