"If I had a million dollars or ten / I'd give IT to ya, world, and then / You'd go away..."
She (I'm going by the Nancy Sinatra version) would happily give away all her life possessions, if it means she could enjoy a happy existence (in Sugar Town).
"Ya" obviously means "you", and "world" tells us who "you" is. By "world", she could mean "all of you".