You could put some “coffee effect” on the sprite of the player and while it lasts the player will know when the buff ended.
there's already a coffee effect with some particles that generates above the head of the player but i agree it could use a stronger indicator, i have a few ideas to accentuate the coffee powerup for a potential post-jam update