B. Prior convictions shall include convictions under the laws of any state or of the United States for any offense substantially similar to those listed under "act of violence" if such offense would be a felony if committed in the Commonwealth.
The Commonwealth shall notify the defendant in writing, at least thirty days prior to trial, of its intention to seek punishment pursuant to this section.