As long as you like. You could stay outside for thirty years and never come to the USA. You will still be a US citizen. Green card holders don't have that benefit, but US citizens do.
Note: This is a verbatim transcript of the referenced audio/video media delivered as oral communication, and, therefore, may not conform to written grammatical or syntactical form.