Posting the model year, and mileage of the bike you're dealing with is often helpful for those trying to assist. Also noting what mods have been done to the bike can helpful.
I would say if your bike is an 08, or newer, then you probably have an issues with the IAC valve. Search "buell xb IAC issues" and you should be able to find a lot of helpful info.
I mention this only BC you mention performing a TPS reset but do not mention anything about ECMspy, tunerpro, or ECMdriod. That leaves me to guess your have an 08 or newer bike which allows you to perform a TPS reset via the throttle grip and what not.
But again, I'm guess since you didn't give much background info.
Also, no matter what year or mileage bike, it is essential your throttle cables are adjusted correctly or anything involving the TPS adjustment will more than likely be out of whack.
Have you had your intake snorkel off resently? Is so make sure it was reinstalled properly.
Are there a CEL flashing when you experience your throttle issues?
How old is your battery? Are the grounds and what not clean and tight?
If you want a quick fix answer then give us a post with enough information to allow us to assertain exactly what you're dealing with.
Otherwise, we're all grasping at straws.
www.buellmods.com for a service manual.
Good luck