class CollectionDrawer { #token: string; constructor(token: string) { this.#token = token; } public hint(): string { return this.#token.slice(-3); } } const drawer = new CollectionDrawer("demo-receipt-482"); console.log(drawer.hint());