TypeScript · easy
Inventory badge renders "[object Promise]" on the warehouse TV. stockLabel returns the Promise itself instead of waiting for the SKU value. Wait for the number, then build the label string.
The inventory badge needs the finished label string, not a Promise on screen. stockLabel("sku-1") must resolve to "SKU sku-1: 3 left".
workspace/
└── src/
└── stock.ts (.then forgotten; UI shows [object Promise])With sharpen installed, this command opens exactly this challenge in your local arena:
sharpen 27
First time? The full install is right below.
npm install -g @juanwmedia/sharpen sharpen 27 npx @juanwmedia/sharpen 27 sharpen update