in cricket, is the turn of the team to be bowled to by their opponents. The persons who “bat” are having their “innings given them”; and the innings of an individual is the time he holds the bat. A good innings. One in which the batsman has made several runs. Figuratively, a run of luck or business.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894
More on Innings from Infoplease: