badge

abstract external var badge: MenuItemBadge?(source)

A badge shown alongside the label, either a system-styled count (alerts, updates, new-items) or a custom string. Only available on macOS 14 and up. Not displayed in Dock menus.