Hi @aikoC , thank you for submitting a question. The Office JavaScript APIs use a different model than VBA. Office JavaScript APIs have both Application-specific APIs that apply to only one application, and Common APIs that apply to all applications. To learn more, see: https://learn.microsoft.com/office/dev/add-ins/develop/understanding-the-javascript-api-for-office?view=common-js-preview#api-models.
I don't know of any Common APIs that apply to shapes.
Within the Application-specific API for Excel (the Excel JavaScript API), this documentation article describes how to create and edit shapes: https://learn.microsoft.com/office/dev/add-ins/excel/excel-add-ins-shapes.
Hope this helps.
Alison