There is no set timeline for a number to be recycled for inactivity. But you can release the number in your settings using the mobile app:
Tap on the TextNow main menu button (icon with three horizontal dashes in the top left-hand corner) and select Account.
Tap on TextNow Number
Tap on the menu button in the top right-hand corner (icon with three dots) and then tap Release Number.