UXP plugin, require('photoshop').imaging it's not working

Hello!
I’m trying to use “require(‘photoshop’).imaging” in the plugin for Photoshop, but in the console it says that “require(‘photoshop’).imaging” is unknown.
Tried downloading the plugin from: https://developer.adobe.com/photoshop/uxp/2022/ps_reference/media/imaging/
it doesn’t work either. :sleepy:
What could be the reason?

App Version 24.3.0
UXP Version 6.5.2

According to the Photoshop API Changelog, it is from v24.4.