Automating it would be difficult, a little less so with the API. But I would suggest using token markers. You could use different colors, Red for Action, Blue for Bonus Action, Green for Reaction, Yellow for Move, and Pink for Item Interaction, that sort of thing. Charge them all up at the beginning of a turn and turn each one off as they are used. But I think it would be very cumbersome in practice.